package com.java.innerClass;

import java.util.Date;

public class Client {

	public static void main(String[] args){
		StaticInnerClass.Apple  apple  = new StaticInnerClass.Apple();
		System.out.println(apple.toString());

		MemberInnerClass.Aapple apple2 = new MemberInnerClass().new Aapple();
		System.out.println(apple2.toString());

		LocalInnerClass local = new LocalInnerClass();
		local.hello();

		AnonymousInnerClass anonymous = new AnonymousInnerClass();
		anonymous.getDate(new Date(){}); //Client$1.class
		anonymous.getDate(new Date(){ //Client$2.class
			@Override
			public String toString() {
				return "匿名内部类";
			}
		});
	}

}
